package utils

import (
	"net/http"
	"testing"

	"github.com/stretchr/testify/assert"
)

func TestProcessTemplates(t *testing.T) {
	templates := ProcessTemplates("../../../public/html/*.html")
	assert.NotNil(t, templates)
}

func TestSetSiteEnvs(t *testing.T) {
	siteName, siteTitle := SetSiteEnvs()
	assert.Equal(t, "Welcome to IMABON!", siteName)
	assert.Equal(t, "IMABON", siteTitle)
}

func TestProcessImageEmpty(t *testing.T) {
	req := http.Request{}

	base64Img := ProcessImage(&req)
	assert.Equal(t, "", base64Img)
}
